package edu.monash.lbc.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import edu.monash.lbc.core.service.MenuEventHandler;
import edu.monash.lbc.core.service.MenuService;
import edu.monash.lbc.core.service.OrderEventHandler;
import edu.monash.lbc.core.service.OrderService;
import edu.monash.lbc.persistence.service.MenuPersistenceService;
import edu.monash.lbc.persistence.service.OrderPersistenceService;

@Configuration
public class CoreConfig {
	@Bean
	public MenuService menuService(MenuPersistenceService menuPersistenceService) {
		return new MenuEventHandler();
	}
	
	@Bean 
	public OrderService orderService(OrderPersistenceService orderPersistenceService) {
		return new OrderEventHandler();
	} 
}
